<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
  xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j"
  xmlns:rich="http://richfaces.org/rich">

<ui:composition template="/templates/main.xhtml">

  <ui:define name="content">

    <h:form>

      <rich:dataTable value="#{userManager.schoolAdmins}" var="admin" width="900px" columnClasses="center" rows="25">

        <f:facet name="header">
          <h:outputText value="School System Administrators" />
        </f:facet>

        <rich:column width="7">
          <f:facet name="header">
            <h:outputText value="Edit" />
          </f:facet>
          <h:commandLink  immediate="true">
            <h:graphicImage id="edit" url="/images/edit.gif" />
          </h:commandLink>
        </rich:column>

        <rich:column width="7">
          <f:facet name="header">
            <h:outputText value="Del" />
          </f:facet>
          <h:commandLink  immediate="true">
            <h:graphicImage id="del" url="/images/delete.gif" />
          </h:commandLink>
        </rich:column>

        <rich:column sortBy="#{admin.name}">
          <f:facet name="header">
            <h:outputText value="Name" />
          </f:facet>
          <h:outputText value="#{admin.name}" />
        </rich:column>

        <rich:column sortBy="#{admin.description}">
          <f:facet name="header">
            <h:outputText value="Description" />
          </f:facet>
          <h:outputText value="#{admin.description}" />
        </rich:column>

      </rich:dataTable>

    </h:form>
  </ui:define>
</ui:composition>
</html>
